namespace NGIS.Model
{
	public struct SpatialExtent
	{
		public double XMin;

		public double XMax;

		public double YMin;

		public double YMax;

		public string SpatialReference;

		public SpatialExtent(double xmin, double xmax, double ymin, double ymax, string sreference)
		{
			XMin = xmin;
			XMax = xmax;
			YMin = ymin;
			YMax = ymax;
			SpatialReference = sreference;
		}

		public static bool operator ==(SpatialExtent seA, SpatialExtent seB)
		{
			if (seA.XMin == seB.XMin && seA.XMax == seB.XMax && seA.YMin == seB.YMin && seA.YMax == seB.YMax && seA.SpatialReference == seB.SpatialReference)
			{
				return true;
			}
			return false;
		}

		public static bool operator !=(SpatialExtent seA, SpatialExtent seB)
		{
			return !(seA == seB);
		}
	}
}
